package club.janna.concurrency.example.immutable;

import club.janna.concurrency.annotation.ThreadSafe;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;

@ThreadSafe
public class ImmutableExample3 {

    private static ImmutableList<Integer> list = ImmutableList.of(1, 2, 3, 4);

    private static ImmutableSet<Integer> set = ImmutableSet.copyOf(list);

    public static void main(String[] args) {
        set.add(1);
    }
}
